package cn.richard.demo.ruleengine;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
public class BootEasyRulesNacos {
	public static void main(String[] args) {
		ConfigurableApplicationContext ctx = SpringApplication.run(BootEasyRulesNacos.class, args);
//		ConfigurableEnvironment env = ctx.getEnvironment();
//            try {
//            	while(true) {
//            		System.err.println(env.getProperty("test.config.info"));
//            		TimeUnit.SECONDS.sleep(2);
//            	}
//			} catch (InterruptedException e) {
//				e.printStackTrace();
//			}
	}
}